package com.pingancar.creditmanage.pojo;

import javax.persistence.*;
import java.sql.Timestamp;

public class OrderitemPojo {

    static public final int CANCELED = -1;      //取消
    static public final int ORDERING = 0;       //下单
    static public final int CONFIRM = 1;        //确认
    static public final int COMMENT = 2;        //评论


    private int id;
    private String orderitemid;
    private Timestamp ordertime;
    private int status;
    private PaservicePojo paservice;
    private UserPojo user;
    private int star;
    private Timestamp confirmtime;
    private int credit;
    private String comment;

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public String getOrderitemid() {
        return orderitemid;
    }

    public void setOrderitemid(String orderitemid) {
        this.orderitemid = orderitemid;
    }

    public Timestamp getOrdertime() {
        return ordertime;
    }

    public void setOrdertime(Timestamp ordertime) {
        this.ordertime = ordertime;
    }

    public int getStatus() {
        return status;
    }

    public void setStatus(int status) {
        this.status = status;
    }

    public int getStar() {
        return star;
    }

    public void setStar(int star) {
        this.star = star;
    }

    public PaservicePojo getPaservice() { return paservice; }

    public void setPaservice(PaservicePojo paservice) { this.paservice = paservice; }

    public UserPojo getUser() { return user; }

    public void setUser(UserPojo user) { this.user = user; }

    public Timestamp getConfirmtime() {
        return confirmtime;
    }

    public void setConfirmtime(Timestamp confirmtime) {
        this.confirmtime = confirmtime;
    }

    public int getCredit() {
        return credit;
    }

    public void setCredit(int credit) {
        this.credit = credit;
    }

    public String getComment() {
        return comment;
    }

    public void setComment(String comment) {
        this.comment = comment;
    }
}
